//
//  QXBaseViewController.m
//  JYQX
//
//  Created by Hayder on 2018/8/22.
//  Copyright © 2018年 Hayder. All rights reserved.
//

#import "HHBaseViewController.h"
#import "HHGlobalDefine.h"
@interface HHBaseViewController ()


@end

@implementation HHBaseViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.view.backgroundColor = [UIColor whiteColor];
    
    self.navigationBar = [[HHNavigationBar alloc] initWithFrame:CGRectMake(0, 0, HH_SCREEN_WIDTH, self.navBarHeight)];
    [self.view addSubview:self.navigationBar];
    [self.navigationBar setNavigationBarColor:UIColor.whiteColor];
    self.navigationBar.titleLabel.text = self.title;
}

- (void)startRuning
{
    self.startTime = [[NSDate date] timeIntervalSince1970];
}
- (void)stopRunningWithMessage:(NSString *)message
{
    NSString *msg = message?:@"消耗时间";
    self.endTime = [[NSDate date] timeIntervalSince1970];
    NSLog(@"%@: %f ",msg,self.endTime - self.startTime);
}

@end
